package com.leihao.product.domian.listRequest;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

@ApiModel("通用查询条件实体")
public class TypeListRequest {
    //example初始值
    @ApiModelProperty(value = "父级编号", required = true, example = "0")
    @NotNull(message = "父级编号不能为空")
    private Integer parentId;
    @ApiModelProperty(value = "页码", required = true, example = "1")
    @NotNull(message = "页码不能为空")
    private Integer pageNum;
    @ApiModelProperty(value = "每页显示数量", required = true, example = "5")
    @NotNull(message = "显示数量不能为空")
    private Integer pageSize ;

    public Integer getPageNum() {
        return pageNum;
    }

    public TypeListRequest(Integer parentId, Integer pageNum, Integer pageSize) {
        this.parentId = parentId;
        this.pageNum = pageNum;
        this.pageSize = pageSize;
    }

    public Integer getParentId() {
        return parentId;
    }

    public void setParentId(Integer parentId) {
        this.parentId = parentId;
    }

    public void setPageNum(Integer pageNum) {
        this.pageNum = pageNum;
    }

    public Integer getPageSize() {
        return pageSize;
    }

    public void setPageSize(Integer pageSize) {
        this.pageSize = pageSize;
    }

    public TypeListRequest() {
    }

    public TypeListRequest(Integer pageNum, Integer pageSize) {
        this.pageNum = pageNum;
        this.pageSize = pageSize;
    }
}
